<#escape x as x?html>
<div class="main">
    <h3 class="box-title" style="border-bottom: 1px solid #ccc; padding-bottom: 10px;">Fusion配置</h3>
    <form class="form-horizontal" id="fusionCfg" style="margin-top: 30px">
        <div class="form-group">
            <label for="ip" class="col-sm-2 control-label">IP</label>
            <div class="col-sm-10">
                <input class="form-control" id="ip" ng-model="fusion.ip" placeholder="IP" type="text"
                       data-error="<@s.message "validator.error.require"/>" required>
                <div class="help-block with-errors"></div>
            </div>
        </div>
        <div class="form-group">
            <label for="webPort" class="col-sm-2 control-label">Web端口</label>
            <div class="col-sm-10">
                <input class="form-control" id="webPort" placeholder="Web端口"
                       type="number" string-to-number ng-model="fusion.webPort"
                       data-error="<@s.message "validator.error.positiveInteger"/>" required>
                <div class="help-block with-errors"></div>
            </div>
        </div>
        <div class="form-group">
            <label for="rpcPort" class="col-sm-2 control-label">RPC端口</label>
            <div class="col-sm-10">
                <input class="form-control" id="rpcPort" placeholder="RPC端口"
                       type="number" string-to-number ng-model="fusion.rpcPort"
                       data-error="<@s.message "validator.error.positiveInteger"/>" required>
                <div class="help-block with-errors"></div>
            </div>
        </div>
        <button type="submit" id="saveFusion" ng-click="saveFusion()" class="btn btn-info pull-right">保存
        </button>
    </form>
</div>
<script>
    var config = {
        paths: {
            sysCfg: "${modulesPath}/common/systemConfig",
        }
    };

    context.call(config, ["sysCfg"], function (sysCfg) {
        sysCfg.init();
    })
</script>
</#escape>
